package patterns;

import interfaces.Printer;

/**
 * Created by Administrator on 15-2-6.
 */
public class PrintFactor {
    static Printer machine;

    public static Printer getPrinter(){
        if (machine == null){
//            machine = new SimplePrinter();
            machine = new BetterPrinter();
        }
        return machine;
    }
}
